/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom right, rgba(185, 211, 247, 0.6), rgba(111, 157, 248, 0.3)),
            url('src_produtos/images/kseniya-lapteva-A4rqd2g-eLo-unsplash.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: lighten;
    color: #1a1a1a;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.header {
    background: #00294b;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

#div_btn_limpar{
    display: none;
}

#btn_limpar{
    background-color: #fff;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.1);;
    transition: transform 0.2s ease;
}

#btn_logout{
    background-color: #fff;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.1);;
    transition: transform 0.2s ease;
}

#btn_logout:hover{
    transform: scale(1.05);
    cursor: pointer;
}

#btn_logout a {
  text-decoration: none;
  color: inherit;
}

#btn_logout a:visited,
#btn_logout a:active,
#btn_logout a:hover {
  color: inherit;
  text-decoration: none;
}

/* Logo */
#nav_logo_img {
    height: 60px; /* ou ajuste conforme necessário */
    width: auto;
}



/* Navigation */
.navigation {
    display: flex;
    gap: 40px;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-button:hover {
    color: #7f92ff;
}

.nav-button i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-button i {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-20%);
    width: 59vw;
    max-width: 1000px;
    background: linear-gradient(to bottom, #e9f1ff, #ffffff);
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding: 40px;
}

.mega-menu-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #003366;
    border-left: 4px solid #4d90fe;
    margin-bottom: 16px;
    padding-left: 8px;
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li {
    margin-bottom: 8px;
}

.mega-menu-column a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mega-menu-column a:hover {
    color: #333;
}

/* Search */
.search-container {
    position: relative;
    width: 320px;
}

.search-box {
    position: relative;
    width: 100%;   
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-top: 4px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.search-suggestions.show {
    opacity: 1;
    visibility: visible;
}

.search-suggestions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-image {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.suggestion-image-img{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 2px;
}

.suggestion-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 48px;
    font-weight: bold;
    color: #00294b;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.image_card{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.product-card:hover .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-category {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: capitalize;
}

.product-button {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-button:hover {
    background: #333;
    color: #ffffff;
    border-color: #333;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 18px;
    color: #666;
    margin-bottom: 8px;
}

.no-results small {
    font-size: 14px;
    color: #999;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
    padding: 20px 0;
}

.footer-content {
    text-align: center;
}

.footer-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.footer-content p {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {

    #div_btn_limpar{
        display: flex;
    }

    .search-container{
        display: none;
    }

    #btn_logout{
        display: none;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }
    
    .navigation {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-container {
        width: 100%;
        max-width: 300px;
    }
    
    .mega-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 60vw;
        background: linear-gradient(to bottom, #e9f1ff, #ffffff); 
        z-index: 9999;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 0 0 12px 12px; /* cantos inferiores arredondados */
    }

    .mega-menu-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 24px;
    }

    .mega-menu-column h3 {
        font-size: 16px;
        font-weight: 700;
        color: #003366; /* azul escuro para contraste */
        margin-bottom: 12px;
        border-left: 4px solid #4d90fe; /* barrinha de destaque */
        padding-left: 8px;
    }

    .mega-menu-column ul li a {
        font-size: 14px;
        color: #333;
        padding: 6px 0;
        display: block;
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }

    .mega-menu-column ul li a:hover {
        background-color: rgba(77, 144, 254, 0.1); /* hover suave */
        padding-left: 4px;
    }
    
    /* Melhorar área de toque nos links do menu mobile */
    .mega-menu-column a {
        padding: 8px 4px;
        margin: 2px 0;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }
    
    .mega-menu-column a:hover,
    .mega-menu-column a:active {
        background-color: #f0f0f0;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {

    
    .container {
        padding: 0 16px;
    }
    
    .navigation {
        gap: 16px;
    }
    
    .nav-button {
        font-size: 18px;
        padding: 8px 4px;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    /* Melhorar ainda mais a área de toque em telas muito pequenas */
    .mega-menu-column a {
        padding: 12px 8px;
        font-size: 16px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas no mobile */
        gap: 16px;
        padding: 0 10px;
    }

    .product-image {
        width: 100%;
        height: 180px; 
    }

    .product-name {
        font-size: 14px;
    }

  .product-description {
        font-size: 12px;
    }

  .product-button {
        padding: 6px 10px;
        font-size: 12px;
    }

  .product-category {
        font-size: 10px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

